﻿using System.ComponentModel;

namespace MadMediaManager.WPFSupport.Services.Threading.Extensions
{
    public static class ObjectExtensions
    {
        public static bool HasCancellationPending(this object senderBackgroundWorker)
        {
            return (senderBackgroundWorker as BackgroundWorker).CancellationPending;
        }
    }
}
